home *** CD-ROM | disk | FTP | other *** search
- %%BeginResource: procset AGM_Gradient_Sep 1.0 0
- %%Title: (AGM Gradient Procset)
- %%Version: 1.0 0
- %%CreationDate: (4/26/96) ()
- %%Copyright: ((C) 1987-1996 Adobe Systems Incorporated All Rights Reserved)
- userdict /defaultpacking currentpacking put true setpacking
- userdict /AGM_Gradient_Sep 5 dict dup begin put
- /AGM_Gradient_Sep_private 100 dict def
- /initialize{
- AGM_Gradient_Sep begin
- AGM_Gradient_Sep_private begin
- _compositeJob{
- initializeSinglePassSeps
- }{
- initializeMultiPassSeps
- }ifelse
- initializeSeps
- AGM_Gradient_private begin
- /_fillSD newSpotDict def
- /_rampSD newSpotDict def
- /_nCustomColorSD nd
- end
- AGM_Gradient_Sep_private
- {
- dup xcheck 1 index type /arraytype eq and
- {
- bind
- }if
- pop pop
- }forall
- AGM_Gradient_Sep
- {
- dup xcheck 1 index type /arraytype eq and
- {
- bind
- }if
- pop pop
- }forall
- end
-
- currentdict readonly pop
- end
- }def
- /terminate{
- currentdict AGM_Gradient_Sep eq{
- end
- }if
- }def
- AGM_Gradient_Sep_private begin
- /initializeSeps{
- _noImage not _level2PS not and{
- /linealFill{
- currentoverprint{
- 0 0 1 1 rectfill
- }{
- mySave
- 8 setImageParms
- _color{
- _nCustomColorSD begin
- cyan magenta yellow black
-
- _spotColor{
- spot1/tintImage spot1/tintValue get 1 exch sub makeByte8 put
- spot2/tintImage spot2/tintValue get 1 exch sub makeByte8 put
- }if
- end
-
- 4{
- makeByte8 4 1 roll
- }repeat
- true 4 _nCustomColorSD ncolorimage
- }{
- _nCustomColorSD/black get 1 exch sub makeByte8
- _nCustomColorSD bwImage
- }ifelse
- myRestore
- }ifelse
- }def
- }if
- /_whiteBytes 1 makeByte8 pt
- /knockOut{
- _noImage _level2PS or currentoverprint or{
- gsave
- false setoverprint
- 1 setgray
- 0 0 1 1 rectfill
- grestore
- }{
- 8 setImageParms _whiteBytes /_image load 5 execImage
- }ifelse
- }def
- /newSpotDict{
- 11 dict dup begin
- /nSpots 2 def
- /spot1 7 dict def
- /spot2 7 dict def
- end
- }def
- /initSpotData
- {
- begin
- /name nd
- /tintImage nd
- /tintValue nd
- /spot_C nd
- /spot_M nd
- /spot_Y nd
- /spot_K nd
- end
- }def
- /initSpotDict{
- begin
- /cyanInk nd
- /magentaInk nd
- /yellowInk nd
- /blackInk nd
- /cyan nd
- /magenta nd
- /yellow nd
- /black nd
- spot1 initSpotData
- spot2 initSpotData
- end
- }def
- /copySpotDict{
- /_dst xp
- begin
- cyanInk magentaInk yellowInk blackInk
- cyan magenta yellow black
- spot1 spot2
- end
- _dst begin
- /spot1 spot1 maxlength dict def
- /spot2 spot2 maxlength dict def
- spot2 copy pop
- spot1 copy pop
- /black xd
- /yellow xd
- /magenta xd
- /cyan xd
- /blackInk xd
- /yellowInk xd
- /magentaInk xd
- /cyanInk xd
- end
- }def
- /setCustomColor
- {
- 1 index /Black eq{
- 6 1 roll 5 npop
- 1 exch sub
- setgray
- }{
- 6 1 roll _ccAry1 astore exch
- dup null eq{
- pop 0
- }if
- setcustomcolor
- }ifelse
- }def
- /setCStop{
- /_colorStyle exch pt
-
- _colorStyle 0 eq{
- 0 0 0
- 4 -1 roll
- 1 exch sub
- _spotColor{
- /_colorStyle 3 pt
- /Black
- 1 index
- 1 exch sub
- }if
- }if
- _colorStyle 2 eq{
- 3 npop
- }if
- _rampSD _fillSD copySpotDict
-
- _colorStyle 4 eq{
- pop
- 9 2 roll 3 npop 6 -2 roll
- } if
-
- _colorStyle 3 eq _colorStyle 4 eq or{
-
- _fillSD begin
- /_spot1 spot1 pt
- /_spot2 spot2 pt
- end
-
- exch dup _spot1/name get eq{
- _spot1 _spot2
- }{
- _spot2 _spot1
- }ifelse
- begin
- begin
- /name xd
- 1 exch sub /tintValue xd
- 4{
- tintValue mul 4 1 roll
- }repeat
- _spotColor not{
- /tintValue null def
- }if
- end
- /tintValue 0 def
- end
- }if
- _fillSD nsetcustomcolor
- }def
- /renderCMYK{
- spot1/name get null eq
- spot2/name get null eq and
- dup not{
- pop
- spot1 spotConverted
- }if
- dup not{
- pop
- spot2 spotConverted
- }if
- }def
- /currentInk{
- true
- _inRipSep{
- currentcolorspace 0 get
- dup /DeviceGray eq
- 1 index /DeviceCMYK eq or{
- pop
- currentcmykcolor add add add 0 eq{
- pop false
- }if
- }{
- /Separation eq{
- currentcolor 0 eq{
- pop false
- }if
- }if
- }ifelse
- }{
- currentgray 1 eq{
- pop false
- }if
- }ifelse
- }def
- /currentInkN{
-
- _nCustomColorSD begin
- /_spot1 spot1 pt
- /_spot2 spot2 pt
- renderCMYK
- end
- {
- currentInk
- }{
- gsave
- _spot1 begin
- name null ne{
- spot_C spot_M spot_Y spot_K name tintValue setCustomColor
- currentInk
- }{
- false
- }ifelse
- end
- _spot2 begin
- name null ne{
- spot_C spot_M spot_Y spot_K name tintValue setCustomColor
- currentInk
- }{
- false
- }ifelse
- end
- grestore
-
- or
- } ifelse
- }def
- /fill_ /fill load def
- /fillOvp{
- currentoverprint{
- _inRipSep{
- currentcolorspace 0 get
- dup /DeviceGray eq
- 1 index /DeviceCMYK eq or{
- pop
- currentcmykcolor add add add 0 eq{
- newpath
- }if
- }{
- /Separation eq{
- currentcolor 0 eq{
- newpath
- }if
- }if
- }ifelse
- }{
- currentgray 1 eq{
- newpath
- }if
- }ifelse
- }if
- fill_
- }def
- /fill{
- _nCustomColorSD begin
- /_spot1 spot1 pt
- /_spot2 spot2 pt
- renderCMYK
- end
-
- {
- fillOvp
- }{
- _spot1 begin
- gsave
- name null ne{
- spot_C spot_M spot_Y spot_K name tintValue setCustomColor
- }{
- 1 setgray
- }ifelse
- fillOvp
- grestore
- end
- _spot2 begin
- name null ne{
- gsave
- true setoverprint
- spot_C spot_M spot_Y spot_K name tintValue setCustomColor
- fillOvp
- grestore
- }if
- end
- newpath
- }ifelse
- }def
- /expandSpot{
- _spotColor{
- /_len xp
- _rampSD begin
- spot1 begin
- tintImage null ne{
- tintImage _len expandOne /tintImage xd
- }if
- end
- spot2 begin
- tintImage null ne{
- tintImage _len expandOne /tintImage xd
- }if
- end
- end
- }{
- pop
- }ifelse
- }def
- /rampImage{
- _enabledSmoothShade{
- fillRamp
- }{
- currentoverprint{
- rectImage
- }{
- _color{
- _rampSD begin
- /cyanInk _cyanData 0 ne def
- /magentaInk _magentaData 0 ne def
- /yellowInk _yellowData 0 ne def
- /blackInk _blackData 0 ne def
- end
-
- _nSamples setImageParms
- _nSamples expandSpot
- _cyanData _magentaData _yellowData _blackData _nSamples 4 expandColor
- true 4 _rampSD ncolorimage
- }{
- _rampSD begin
- /cyanInk false def
- /magentaInk false def
- /yellowInk false def
- /blackInk true def
- end
- _nSamples setImageParms
- _blackData _rampSD bwImage
- }ifelse
- }ifelse
- }ifelse
- }def
- /nsetcustomcolor where{
- pop
- }{
- /nsetcustomcolor
- {
- /_nCustomColorSD xp
- _nCustomColorSD begin
- 4 copy
- /black xd
- /yellow xd
- /magenta xd
- /cyan xd
- 4 copy
- 0 ne /blackInk xd
- 0 ne /yellowInk xd
- 0 ne /magentaInk xd
- 0 ne /cyanInk xd
- end
- setcmykcolor
- }def
- }ifelse
- /nsetcustomcolorend where{
- pop
- }{
- /nsetcustomcolorend
- {
- /_nCustomColorSD null pt
- }def
- }ifelse
- /getRampColorSpace{
-
- /_renderCMYK _rampSD begin renderCMYK end pt
-
- _renderCMYK not{
- _rampSD begin
- [/DeviceN
- [
- spot1 begin
- name null ne tintImage null ne and{
- name
- }if
- end
- spot2 begin
- name null ne tintImage null ne and{
- name
- }if
- end
- ] /DeviceCMYK {}
- ] setcolorspace
- end
- /_nColorSpace currentcolorspace pt
- }if
-
- _nSamples 1 gt{
- /_ndx 0 pt
- [blendColor] cvx exec
- }if
- _renderCMYK{
- /_C0 [currentcolor] pt
- /_C0_Space currentcolorspace pt
- }{
- /_C0 [
- _nCustomColorSD begin
- spot1 begin
- name null ne{
- tintValue
- }if
- end
- spot2 begin
- name null ne{
- tintValue
- }if
- end
- end
- ] pt
- /_C0_Space _nColorSpace pt
- }ifelse
-
- _nSamples 1 gt{
- /_ndx _nSamples 1 sub pt
- [blendColor] cvx exec
- }if
- _renderCMYK{
- /_C1 [currentcolor] pt
- /_C1_Space currentcolorspace pt
- }{
- /_C1 [
- _nCustomColorSD begin
- spot1 begin
- name null ne{
- tintValue
- }if
- end
- spot2 begin
- name null ne{
- tintValue
- }if
- end
- end
- ] pt
- /_C1_Space _nColorSpace pt
- }ifelse
-
- /_rampColorSpace _C0_Space pt
- _spotColor{
- nsetcustomcolorend
- }if
- }def
- }def
- /initializeSinglePassSeps{
- /_decodeNorm [0 1] pt
- /_decodeInvert [1 0] pt
- /spotConverted
- {
- begin
- name null eq{
- false
- }{
- tintValue null eq tintImage null eq and{
- true
- }{
- false
- currentpagedevice/SeparationOrder get{name eq or}forall
- not
- }ifelse
- }ifelse
- end
- }def
- /dictImage
- {
- 20 dict dup begin
- /Dict xd
- /Decode xd
- /DataSource xd
- /ImageMatrix xd
- /BitsPerComponent xd
- /Height xd
- /Width xd
- /ImageType 1 def
- Dict
- end
- /_image load 1 execImage
- }def
- /bwImage{
- begin
- gsave
- currentoverprint{
- blackInk{
- [/Separation /Black /DeviceGray{}] setcolorspace
- _decodeInvert dictImage
- }{
- 5 npop
- }ifelse
- }{
- /DeviceGray setcolorspace
- _decodeNorm dictImage
- }ifelse
- grestore
- end
- }def
- /ncolorimage where{
- pop
- }{
- /ncolorimage{
- begin
- renderCMYK{
- cyanInk
- magentaInk and
- yellowInk and
- blackInk and
- not
- currentoverprint
- and{
- pop pop
- gsave
- cyanInk{
- 8 copy
- [/Separation /Cyan /DeviceGray{}] setcolorspace
- 3 npop
- _decodeNorm dictImage
- }if
- magentaInk{
- 8 copy
- [/Separation /Magenta /DeviceGray{}] setcolorspace
- 4 -1 roll
- 3 npop
- _decodeNorm dictImage
- }if
- yellowInk{
- 8 copy
- [/Separation /Yellow /DeviceGray{}] setcolorspace
- 4 -2 roll
- 3 npop
- _decodeNorm dictImage
- }if
- blackInk{
- 4 -3 roll
- [/Separation /Black /DeviceGray{}] setcolorspace
- 3 npop
- _decodeNorm dictImage
- }{
- 8 npop
- }ifelse
- grestore
- }{
- /_colorimage load 10 execImage
- }ifelse
- }{
- 6 npop
- gsave
- spot1 begin
- name null ne tintImage null ne and{
- [/Separation name /DeviceGray{}] setcolorspace
- 4 copy
- tintImage
- name /Black eq{
- _decodeNorm
- }{
- _decodeInvert
- }ifelse
- dictImage
- }{
- 1 setgray fill
- }ifelse
- end
- spot2 begin
- true setoverprint
- name null ne tintImage null ne and{
- [/Separation name /DeviceGray{}] setcolorspace
- tintImage
- name /Black eq{
- _decodeNorm
- }{
- _decodeInvert
- }ifelse
- dictImage
- }{
- 4 npop
- 1 setgray fill
- }ifelse
- end
- grestore
- }ifelse
- end
- }def
- }ifelse
- }def
- /initializeMultiPassSeps{
- /_isCMYKSep
- _cyanPlate _magentaPlate or _yellowPlate or _blackPlate or
- pt
- /invertXfer{
- [
- {
- 1 exch sub
- }/exec load systemdict /currenttransfer get exec /exec load
- ] cvx systemdict /settransfer get exec
- }def
- /ccThrough{
- gsave
- 1 setCustomColor
- currentcmykcolor
- grestore
- add add add 0 ne
- }def
- /spotConverted
- {
- begin
- _isCMYKSep not{
- false
- }{
- name null eq{
- false
- }{
- tintValue null eq tintImage null eq and{
- true
- }{
- spot_C spot_M spot_Y spot_K name ccThrough
- }ifelse
- }ifelse
- }ifelse
- end
- }def
- /spotChannel
- {
- _isCMYKSep{
- pop false
- }{
- /_spotDict xp
- _spotDict/name get null eq{
- false
- }{
- _spotDict/spot_C get
- _spotDict/spot_M get
- _spotDict/spot_Y get
- _spotDict/spot_K get
- _spotDict/name get
- ccThrough
- }ifelse
- }ifelse
- }def
- /getChannelData
- {
- _isCMYKSep dup{
- pop renderCMYK
- }if
- {
- _blackPlate{
- 4 1 roll 3 npop blackInk
- }{
- _yellowPlate{
- 4 2 roll 3 npop yellowInk
- }{
- _magentaPlate{
- 4 3 roll 3 npop magentaInk
- }{
- 3 npop cyanInk
- }ifelse
- }ifelse
- }ifelse
- {
- true /nonZeroData
- }{
- true /zeroData
- }ifelse
- }{
- 4 npop
- spot1/name get null ne
- spot1 spotChannel and{
- spot1/tintImage get dup null ne{
- false /nonZeroData
- }{
- pop false /noData
- }ifelse
- }{
- spot2/name get null ne
- spot2 spotChannel and{
- spot2/tintImage get dup null ne{
- false /nonZeroData
- }{
- pop false /noData
- }ifelse
- }{
- false /noData
- }ifelse
- }ifelse
- }ifelse
- }def
- /renderChannelData
- {
- /_tmp xp
- _tmp /nonZeroData ne currentoverprint and{
- pop
- _tmp /zeroData eq{pop}if
- 4 npop
- }{
- _tmp /nonZeroData eq{
- {
- invertXfer
- }if
- systemdict/image
- get 5 execImage
- }{
- pop
- _tmp /zeroData eq{pop}if
- 4 npop
- knockOut
- }ifelse
- }ifelse
- }def
- /bwImage{
- begin
- gsave
- dup dup dup
- getChannelData
- exch pop false exch
- renderChannelData
- grestore
- end
- }def
- /ncolorimage{
- begin
- pop pop
- gsave
- spot2/name get null ne spot2 spotChannel and{
- true setoverprint
- }if
- getChannelData
- renderChannelData
- grestore
- end
- }def
- }def
- end
- end
- defaultpacking setpacking
- %%EndResource